import { baseUrlApi, requestClient, type Result } from '#/api/request';





/** 表单列表 */

export const getEmailLog = (params?: object) => {
  return requestClient.get<Result>(baseUrlApi('/portal/admin/email_log'),{params});
};


  
  /**
   * 获取表单信息
   * @param id
   * @returns
   */
  export const getEmailLogInfo = (id: number) => {
    return requestClient.get<Result>(baseUrlApi(`/portal/admin/email_log/${id}`));
  };
  

  
  
  /**
   * 删除表单
   * @param id
   * @returns
   */
  export const deleteEmailTemplat = (id: number) => {
    return requestClient.delete<Result>(baseUrlApi(`/portal/admin/email_log/${id}`));
  };
  
/** 批量删除 */
export const deleteMultiple = (ids: number[]) => {
  return requestClient.post<Result>(
    baseUrlApi('/portal/admin/email_log/deleteMultiple'), // 批量删除的路径
    { data: { ids } } // 传递多个 ID
  );
};

